
using UnityEngine;
using UnityEngine.SceneManagement;
// 设置面板
public class SetSelect : MonoBehaviour
{

    public GameObject[] Houtai;
    private int index;
    public int language;
    void Start()
    {
        language = PlayerPrefs.GetInt("language", 0);
    }

    void Update()
    {

    }

    public void ChangeSetUI(int _index)
    {
        for (int i = 0; i < Houtai.Length; i++)
        {
            if (_index == i)
            {
                Houtai[i].SetActive(true);
                index = i;
            }
            else
            {
                Houtai[i].SetActive(false);
            }
        }
    }

    public void LoadScene()
    {
        SceneManager.LoadScene(0);
    }
}
